package com.jy.api.service;

import com.jy.api.domain.Num;
import com.jy.api.signUpReq.admin.NumReq;
import com.jy.api.signUpReq.pos.NumDetailsRes;
import com.jy.api.signUpReq.pos.OpenNumReq;
import com.jy.api.util.Result;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaohua on 2019/2/18.
 */
public interface NumService {


    Page<Num> getAllNumById(String id, Pageable pageable);

    Result updateNumById(NumReq req);

    Result deleteNumById(NumReq req);

    Result addNumById(NumReq req);

    Result openNum(OpenNumReq req);

    Result updateNum(OpenNumReq req);

    Map<String,Object> getOneNum(NumReq req);


    List<Num> getNumByParId(int parId);


    NumDetailsRes getNumDetails(int id);

    void mergeTran(OpenNumReq req);




}
